import request from '@/utils/request'



export function page1(data) {
  return request({
    url: '/role/page',
    method: 'post',
    data
  })
}
export function addRole(data) {
  return request({
    url: '/role/add',
    method: 'post',
    data
  })
}
export function updateRole(data) {
  return request({
    url: '/role/update',
    method: 'post',
    data
  })
}
export function deleteRole(id) {
  return request({
    url: `/role/delete/${id}`,
    method: 'post',
  })
}

export function all() {
  return request({
    url: '/menu/all',
    method: 'get',
  })
}
